package com.dianjing.dianqun.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.dianjing.dianqun.common.base.CrudMpper;
import com.dianjing.dianqun.model.Site;

public interface SiteMapper extends CrudMpper<Site> {
	int deleteByPrimaryKey(Integer siteId);

	int insert(Site record);

	int insertSelective(Site record);

	Site selectByPrimaryKey(Integer siteId);

	int updateByPrimaryKeySelective(Site record);

	int updateByPrimaryKey(Site record);

	List<Site> selectAllSite();

	List<Site> findByQuery(@Param("keyword") String keyword);

	Long selectFlowCountBySiteId(@Param("siteId")Integer siteId);

	List<Site> findSiteByView();

	List<Site> findSiteByFollows();

	Site selectSitelByUserId(@Param("userId")Integer userId);
}